package com.wyl.pmd.rule.errorprone;

public class StringBufferInstantiationWithChar {

	public static void main(String[] args) {

		new StringBuffer(); // 16
		new StringBuffer(6); // 6
		new StringBuffer("hello world"); // 11 + 16 = 27
		new StringBuffer('A'); // chr(A) = 65
		new StringBuffer("A"); // 1 + 16 = 17

		new StringBuilder(); // 16
		new StringBuilder(6); // 6
		new StringBuilder("hello world"); // 11 + 16 = 27
		new StringBuilder('C'); // chr(C) = 67
		new StringBuilder("A"); // 1 + 16 = 17

	}

}
